import React from 'react'
import { Carousel } from 'antd-mobile';
import './MineBanner.less'
function MineBanner(props) {
    // 取出数据
    let { list } = props
    return (
        <div className="minebanner">
            <Carousel
                autoplay={true}
                infinite
            >
                {/* 遍历 */}
                {list.map((item) => (
                    <img
                        key={item.id}
                        src={item.img}
                        alt=""
                    />
                ))}
            </Carousel>
        </div>
    )
}

export default React.memo(MineBanner)
